package com.spzx.manager.mapper;

import com.spzx.model.dto.system.SysUserDto;
import com.spzx.model.entity.system.SysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Project: spzx-parent
 * Package: com.spzx.manager.mapper
 * Version: 1.0
 * <p>
 * Created by  wangjiaxin  on 2023/11/30 20:38
 */
@Mapper
public interface SysUserMapper {

    //查询用户名
    SysUser selectByUserName(String userName);

    //用户分页查询接口
    List<SysUser> findByPage(SysUserDto sysUserDto);

    //写入用户
    void saveSysUser(SysUser sysUser);

    //用户修改
    void updateSysUser(SysUser sysUser);

    //用户删除
    void deleteById(Long userId);

}
